{extend name="base" /}
{block name="content"}
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-header">服务记录管理</div>
        <div class="layui-card-body">
            <form class="layui-form" action="">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <input type="text" name="name" placeholder="请输入联系人姓名" value="{$name}" class="layui-input">
                    </div>
                    <div class="layui-inline">
                        <button class="layui-btn" lay-submit>搜索</button>
                    </div>
                </div>

                <table class="layui-table" lay-size="sm">
                    <thead>
                        <tr>
                            <th>联系人</th>
                            <th>指派时间</th>
                            <th>服务开始</th>
                            <th>服务结束</th>
                            <th>服务时长（小时）</th>
                            <th>评分</th>
                            <th>备注</th>
                            <th>状态</th>
                        </tr>
                    </thead>
                    <tbody>
                        {foreach name="list" item="vo"}
                        <tr>
                            <td>{$vo.name}</td>
                            <td>{$vo.assign_time}</td>
                            <td>{$vo.server_start_time}</td>
                            <td>{$vo.server_end_time}</td>
                            <td>{$vo.item_time}</td>
                            <td>{if $vo.server_star > 0}{$vo.server_star}★{else}<span style="color:#ccc;">暂无</span>{/if}</td>
                            <td>{$vo.server_mark|default='--'}</td>
                            <td>
                                {if $vo.is_cancel == 1}
                                    <span style="color:red;">已取消</span>
                                {else}
                                    <span style="color:green;">已服务</span>
                                {/if}
                            </td>
                        </tr>
                        {/foreach}
                    </tbody>
                </table>
            </form>
            <div class="pagination-wrapper">{$feedbacks->render()}</div>
        </div>
    </div>
</div>
{/block}
